export function getToken() {
    return localStorage.getItem("token")
}
export function setToken(token) {
    localStorage.setItem("token",token);
}

export function isLogined() {
    if(localStorage.getItem("token")){
        return true;
    }
    return false;
}

export const addKeyFn = obj=>{
    return obj.map((n,m)=>{
        console.log((n,m))
        return {
            ...n,
            key:(m + 1)
        }
    })
}

